<div id="control_panel">
<div id="local_header">
<h1>Welcome to Clearinghouse</h1>
</div>
<h2 id="notice"><%= flash[:notice] %></h2>
<p>Hello, <%= User.find_by_id(session[:user_id]).username %>!
<% if @logged_in_user.desk_priv or @logged_in_user.rush_priv or @logged_in_user.admin_priv %>
Might I suggest one of these tasty options?</p>
<ul>
<% if @logged_in_user.desk_priv %> <li><%= link_to 'Desk', :controller => 'desk' %></li><% end %>
<% if @logged_in_user.rush_priv %> <li><%= link_to 'Rush', :controller => 'rush' %></li><% end %>
<% if @logged_in_user.admin_priv %> <li><%= link_to 'Admin', :controller => 'house_admin' %></li><% end %>
<li><%= link_to 'Log out', :action => 'logout' %></li>
</ul>
<% else %>
I'm sorry, but you aren't authorized to do anything at all. Whoops!</p>
<% end %>
</div>